/**
 * AE Active Sprite.
 *
 * Released under Apache License, Version 2.0.
 */

package bsp.andengine;

import org.anddev.andengine.entity.sprite.Sprite;
import org.anddev.andengine.opengl.texture.region.TextureRegion;
import org.anddev.andengine.opengl.vertex.RectangleVertexBuffer;

public class AEActiveSprite extends Sprite
{
	protected boolean bActive;
	
	public AEActiveSprite(float pX, float pY, TextureRegion pTextureRegion, RectangleVertexBuffer pRectangleVertexBuffer)
	{
		super(pX, pY, pTextureRegion, pRectangleVertexBuffer);
		bActive = true;
	}
	
	public AEActiveSprite(float pX, float pY, TextureRegion pTextureRegion)
	{
		super(pX, pY, pTextureRegion);
		bActive = true;
	}

	public AEActiveSprite(float pX, float pY, float pWidth, float pHeight, TextureRegion pTextureRegion, RectangleVertexBuffer pRectangleVertexBuffer)
	{
		super(pX, pY, pWidth, pHeight, pTextureRegion, pRectangleVertexBuffer);
		bActive = true;
	}

	public AEActiveSprite(float pX, float pY, float pWidth, float pHeight, TextureRegion pTextureRegion)
	{
		super(pX, pY, pWidth, pHeight, pTextureRegion);
		bActive = true;
	}

	public boolean isActive()
	{
		return bActive;
	}
	
	public void setActive(boolean flag)
	{
		bActive = flag;
	}
}

/* end */
